package com.zzvcom.service.admin;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zzvcom.persist.model.admin.Config;
import com.zzvcom.template.hibernate.DefaultManager;
@Service
@Transactional
public class ConfigManager extends DefaultManager<Config,String>
{
    public static final String CONFIGID="config";
    
    public Config getConfig()
    {
        return this.get(CONFIGID);
    }
    
    public void clearCache()
    {
        this.entityDao.evict(getConfig());
    }
}
